package test1028;

public class HUSend {

    //货物
    public  String code;

    public  String name;

    public   int num;

    public String address;

    //发货人
    public String empName;

    //发货单号
    public String number;

    //发货之前
    public boolean sendBefore(){
        boolean bool = true;
        System.out.println("根据订单号是:"+ this.code+
                "，进行验收并进行装货,快递发送的单号为： " + this.number+
                "，发货人是： " +  this.empName+
                "装货完毕，可准备出发");
        return true;
    }

    //发货
    public void send(Transaction transaction, GPS gps){
        String str1 = transaction.Fcode.toString();
        String str2 = gps.showCodee().toString();

        System.out.println("发货人: " + this.empName +
                 ",发货工具的编号是： "   + str1 +
                ",发送的货物是："        + this.name+
                ",当前获取的坐标信息是： " + str2
        );
    }

    //卸货
    public boolean sendAfter(Transaction transaction){
        boolean bool = true;

        System.out.println("货物顺利到达指定位置： " + this.address+
                ",运输人" +this.empName+
                ",交通工具编号是：" + transaction.Fcode+
                ",顺利将工具归还"
                );

        return true;
    }
}
